package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    Page<Map<String, Object>> findPage(String queryString);

    void addRole(Map<String, Integer> map);

    void addUser(User user);

    User findById(int id);

    void deleteRoleByUserId(Integer id);

    void update(Map<String, Object> map);

    void delete(int id);
}
